package site.yunnong.atvris.service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author zjh
 * @date 2021/7/11 23:47
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class HistoryViewVO {

    @ApiModelProperty("主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    @ApiModelProperty("视频上传作者id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long uuid;
    @ApiModelProperty("视频作者头像")
    private String avatar;
    @ApiModelProperty("作者昵称")
    private String nickname;
    @ApiModelProperty("关联视频id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long uvid;
    @ApiModelProperty("视频封面url")
    private String cover;
    @ApiModelProperty("视频标题")
    private String title;
    @ApiModelProperty("播放时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime viewTime;
    @ApiModelProperty("播放至")
    private String playTo;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long pid;

    private String partitionName;

}
